package com.navi.loaddata.core.gpEntity;

import javax.persistence.*;
import java.sql.Timestamp;

/**
 * Created by Jay on 2018/3/22.
 */
@Entity
@Table(name = "wpp_sht_ope_conf", schema = "sor", catalog = "qmsprd")
public class WppShtOpeConf {
    private String targetSeq;
    private String opeId;
    private String shopId;
    private String valigFlg;
    private String evtUser;
    private Timestamp evtTimestamp;

    @Id
    @Column(name = "target_seq")
    public String getTargetSeq() {
        return targetSeq;
    }

    public void setTargetSeq(String targetSeq) {
        this.targetSeq = targetSeq;
    }

    @Basic
    @Column(name = "ope_id")
    public String getOpeId() {
        return opeId;
    }

    public void setOpeId(String opeId) {
        this.opeId = opeId;
    }

    @Basic
    @Column(name = "shop_id")
    public String getShopId() {
        return shopId;
    }

    public void setShopId(String shopId) {
        this.shopId = shopId;
    }

    @Basic
    @Column(name = "valig_flg")
    public String getValigFlg() {
        return valigFlg;
    }

    public void setValigFlg(String valigFlg) {
        this.valigFlg = valigFlg;
    }

    @Basic
    @Column(name = "evt_user")
    public String getEvtUser() {
        return evtUser;
    }

    public void setEvtUser(String evtUser) {
        this.evtUser = evtUser;
    }

    @Basic
    @Column(name = "evt_timestamp")
    public Timestamp getEvtTimestamp() {
        return evtTimestamp;
    }

    public void setEvtTimestamp(Timestamp evtTimestamp) {
        this.evtTimestamp = evtTimestamp;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        WppShtOpeConf that = (WppShtOpeConf) o;

        if (targetSeq != null ? !targetSeq.equals(that.targetSeq) : that.targetSeq != null) return false;
        if (opeId != null ? !opeId.equals(that.opeId) : that.opeId != null) return false;
        if (shopId != null ? !shopId.equals(that.shopId) : that.shopId != null) return false;
        if (valigFlg != null ? !valigFlg.equals(that.valigFlg) : that.valigFlg != null) return false;
        if (evtUser != null ? !evtUser.equals(that.evtUser) : that.evtUser != null) return false;
        if (evtTimestamp != null ? !evtTimestamp.equals(that.evtTimestamp) : that.evtTimestamp != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = targetSeq != null ? targetSeq.hashCode() : 0;
        result = 31 * result + (opeId != null ? opeId.hashCode() : 0);
        result = 31 * result + (shopId != null ? shopId.hashCode() : 0);
        result = 31 * result + (valigFlg != null ? valigFlg.hashCode() : 0);
        result = 31 * result + (evtUser != null ? evtUser.hashCode() : 0);
        result = 31 * result + (evtTimestamp != null ? evtTimestamp.hashCode() : 0);
        return result;
    }
}
